<p>{{title}} news works!</p>
<div [title]="user.name">title</div>
<div>{{html}}</div>
<div [innerHTML]="html"></div>
<div>my name is {{user.age}}</div>
<img height="200px" src="assets/images/1.jpeg" />

<ul>
    <li *ngFor="let item of arr;let key=index">{{key}}---{{item}}</li>
</ul>

<div *ngIf="user.name=='张三'"> YES TOM</div>

<span [ngSwitch]="orderStatus">
<p *ngSwitchCase="1">
    已支付
</p>
<p *ngSwitchCase="2">
    未支付
</p>
<p *ngSwitchDefault>
    支付宝
</p>
</span>

<div [ngClass]="{'red': true}">my color</div>
<div [ngStyle]="{'background-color': bg}">my background color</div>
<h1>管道</h1>
<div>{{today|date:'yyyy-MM-dd HH:mm:ss'}}</div>
<h1>事件</h1>
<button (click)="run()">点击</button>
<input type="text" (keydown)="keydown($event)" >